<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Conversion (Apache Commons Lang 3.3.2 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Conversion (Apache Commons Lang 3.3.2 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Conversion.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/commons/lang3/ClassUtils.Interfaces.html" title="enum in org.apache.commons.lang3"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/commons/lang3/EnumUtils.html" title="class in org.apache.commons.lang3"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/commons/lang3/Conversion.html" target="_top">Frames</a></li>
<li><a href="Conversion.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.lang3</div>
<h2 title="Class Conversion" class="title">Class Conversion</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.lang3.Conversion</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">Conversion</span>
extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block"><p>
 Static methods to convert a type into another, with endianness and bit ordering awareness.
 </p>
 <p>
 The methods names follow a naming rule:<br>
 <code>&lt;source type&gt;[source endianness][source bit ordering]To&lt;destination type&gt;[destination endianness][destination bit ordering]</code>
 </p>
 <p>
 Source/destination type fields is one of the following:
 </p>
 <ul>
 <li>binary: an array of booleans</li>
 <li>byte or byteArray</li>
 <li>int or intArray</li>
 <li>long or longArray</li>
 <li>hex: a String containing hexadecimal digits (lowercase in destination)</li>
 <li>hexDigit: a Char containing a hexadecimal digit (lowercase in destination)</li>
 <li>uuid</li>
 </ul>
 <p>
 Endianness field: little endian is the default, in this case the field is absent. In case of
 big endian, the field is "Be".<br> Bit ordering: Lsb0 is the default, in this case the field
 is absent. In case of Msb0, the field is "Msb0".
 </p>
 <p>
 Example: intBeMsb0ToHex convert an int with big endian byte order and Msb0 bit order into its
 hexadecimal string representation
 </p>
 <p>
 Most of the methods provide only default encoding for destination, this limits the number of
 ways to do one thing. Unless you are dealing with data from/to outside of the JVM platform,
 you should not need to use "Be" and "Msb0" methods.
 </p>
 <p>
 Development status: work on going, only a part of the little endian, Lsb0 methods implemented
 so far.
 </p></div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Lang 3.2</dd>
<dt><span class="strong">Version:</span></dt>
  <dd>$Id: Conversion.java 1582687 2014-03-28 10:49:04Z britter $</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#Conversion()">Conversion</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryBeMsb0ToHexDigit(boolean[])">binaryBeMsb0ToHexDigit</a></strong>(boolean[]&nbsp;src)</code>
<div class="block">
 Converts the first 4 bits of a binary (represented as boolean array) in big endian Msb0
 bit ordering to a hexadecimal digit.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryBeMsb0ToHexDigit(boolean[], int)">binaryBeMsb0ToHexDigit</a></strong>(boolean[]&nbsp;src,
                      int&nbsp;srcPos)</code>
<div class="block">
 Converts a binary (represented as boolean array) in big endian Msb0 bit ordering to a
 hexadecimal digit.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToByte(boolean[], int, byte, int, int)">binaryToByte</a></strong>(boolean[]&nbsp;src,
            int&nbsp;srcPos,
            byte&nbsp;dstInit,
            int&nbsp;dstPos,
            int&nbsp;nBools)</code>
<div class="block">
 Converts binary (represented as boolean array) into a byte using the default (little
 endian, Lsb0) byte and bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToHexDigit(boolean[])">binaryToHexDigit</a></strong>(boolean[]&nbsp;src)</code>
<div class="block">
 Converts binary (represented as boolean array) to a hexadecimal digit using the default
 (Lsb0) bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToHexDigit(boolean[], int)">binaryToHexDigit</a></strong>(boolean[]&nbsp;src,
                int&nbsp;srcPos)</code>
<div class="block">
 Converts binary (represented as boolean array) to a hexadecimal digit using the default
 (Lsb0) bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToHexDigitMsb0_4bits(boolean[])">binaryToHexDigitMsb0_4bits</a></strong>(boolean[]&nbsp;src)</code>
<div class="block">
 Converts binary (represented as boolean array) to a hexadecimal digit using the Msb0 bit
 ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToHexDigitMsb0_4bits(boolean[], int)">binaryToHexDigitMsb0_4bits</a></strong>(boolean[]&nbsp;src,
                          int&nbsp;srcPos)</code>
<div class="block">
 Converts binary (represented as boolean array) to a hexadecimal digit using the Msb0 bit
 ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToInt(boolean[], int, int, int, int)">binaryToInt</a></strong>(boolean[]&nbsp;src,
           int&nbsp;srcPos,
           int&nbsp;dstInit,
           int&nbsp;dstPos,
           int&nbsp;nBools)</code>
<div class="block">
 Converts binary (represented as boolean array) into a int using the default (little
 endian, Lsb0) byte and bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToLong(boolean[], int, long, int, int)">binaryToLong</a></strong>(boolean[]&nbsp;src,
            int&nbsp;srcPos,
            long&nbsp;dstInit,
            int&nbsp;dstPos,
            int&nbsp;nBools)</code>
<div class="block">
 Converts binary (represented as boolean array) into a long using the default (little
 endian, Lsb0) byte and bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#binaryToShort(boolean[], int, short, int, int)">binaryToShort</a></strong>(boolean[]&nbsp;src,
             int&nbsp;srcPos,
             short&nbsp;dstInit,
             int&nbsp;dstPos,
             int&nbsp;nBools)</code>
<div class="block">
 Converts binary (represented as boolean array) into a short using the default (little
 endian, Lsb0) byte and bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#byteArrayToInt(byte[], int, int, int, int)">byteArrayToInt</a></strong>(byte[]&nbsp;src,
              int&nbsp;srcPos,
              int&nbsp;dstInit,
              int&nbsp;dstPos,
              int&nbsp;nBytes)</code>
<div class="block">
 Converts an array of byte into a int using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#byteArrayToLong(byte[], int, long, int, int)">byteArrayToLong</a></strong>(byte[]&nbsp;src,
               int&nbsp;srcPos,
               long&nbsp;dstInit,
               int&nbsp;dstPos,
               int&nbsp;nBytes)</code>
<div class="block">
 Converts an array of byte into a long using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#byteArrayToShort(byte[], int, short, int, int)">byteArrayToShort</a></strong>(byte[]&nbsp;src,
                int&nbsp;srcPos,
                short&nbsp;dstInit,
                int&nbsp;dstPos,
                int&nbsp;nBytes)</code>
<div class="block">
 Converts an array of byte into a short using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#byteArrayToUuid(byte[], int)">byteArrayToUuid</a></strong>(byte[]&nbsp;src,
               int&nbsp;srcPos)</code>
<div class="block">
 Converts bytes from an array into a UUID using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#byteToBinary(byte, int, boolean[], int, int)">byteToBinary</a></strong>(byte&nbsp;src,
            int&nbsp;srcPos,
            boolean[]&nbsp;dst,
            int&nbsp;dstPos,
            int&nbsp;nBools)</code>
<div class="block">
 Converts a byte into an array of boolean using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#byteToHex(byte, int, java.lang.String, int, int)">byteToHex</a></strong>(byte&nbsp;src,
         int&nbsp;srcPos,
         <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
         int&nbsp;dstPos,
         int&nbsp;nHexs)</code>
<div class="block">
 Converts a byte into an array of Char using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexDigitMsb0ToBinary(char)">hexDigitMsb0ToBinary</a></strong>(char&nbsp;hexDigit)</code>
<div class="block">
 Converts a hexadecimal digit into binary (represented as boolean array) using the Msb0
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexDigitMsb0ToInt(char)">hexDigitMsb0ToInt</a></strong>(char&nbsp;hexDigit)</code>
<div class="block">
 Converts a hexadecimal digit into an int using the Msb0 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexDigitToBinary(char)">hexDigitToBinary</a></strong>(char&nbsp;hexDigit)</code>
<div class="block">
 Converts a hexadecimal digit into binary (represented as boolean array) using the default
 (Lsb0) bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexDigitToInt(char)">hexDigitToInt</a></strong>(char&nbsp;hexDigit)</code>
<div class="block">
 Converts a hexadecimal digit into an int using the default (Lsb0) bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexToByte(java.lang.String, int, byte, int, int)">hexToByte</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
         int&nbsp;srcPos,
         byte&nbsp;dstInit,
         int&nbsp;dstPos,
         int&nbsp;nHex)</code>
<div class="block">
 Converts an array of Char into a byte using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexToInt(java.lang.String, int, int, int, int)">hexToInt</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
        int&nbsp;srcPos,
        int&nbsp;dstInit,
        int&nbsp;dstPos,
        int&nbsp;nHex)</code>
<div class="block">
 Converts an array of Char into a int using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexToLong(java.lang.String, int, long, int, int)">hexToLong</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
         int&nbsp;srcPos,
         long&nbsp;dstInit,
         int&nbsp;dstPos,
         int&nbsp;nHex)</code>
<div class="block">
 Converts an array of Char into a long using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#hexToShort(java.lang.String, int, short, int, int)">hexToShort</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
          int&nbsp;srcPos,
          short&nbsp;dstInit,
          int&nbsp;dstPos,
          int&nbsp;nHex)</code>
<div class="block">
 Converts an array of Char into a short using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intArrayToLong(int[], int, long, int, int)">intArrayToLong</a></strong>(int[]&nbsp;src,
              int&nbsp;srcPos,
              long&nbsp;dstInit,
              int&nbsp;dstPos,
              int&nbsp;nInts)</code>
<div class="block">
 Converts an array of int into a long using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intToBinary(int, int, boolean[], int, int)">intToBinary</a></strong>(int&nbsp;src,
           int&nbsp;srcPos,
           boolean[]&nbsp;dst,
           int&nbsp;dstPos,
           int&nbsp;nBools)</code>
<div class="block">
 Converts a int into an array of boolean using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intToByteArray(int, int, byte[], int, int)">intToByteArray</a></strong>(int&nbsp;src,
              int&nbsp;srcPos,
              byte[]&nbsp;dst,
              int&nbsp;dstPos,
              int&nbsp;nBytes)</code>
<div class="block">
 Converts a int into an array of byte using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intToHex(int, int, java.lang.String, int, int)">intToHex</a></strong>(int&nbsp;src,
        int&nbsp;srcPos,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
        int&nbsp;dstPos,
        int&nbsp;nHexs)</code>
<div class="block">
 Converts a int into an array of Char using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intToHexDigit(int)">intToHexDigit</a></strong>(int&nbsp;nibble)</code>
<div class="block">
 Converts the 4 lsb of an int to a hexadecimal digit.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intToHexDigitMsb0(int)">intToHexDigitMsb0</a></strong>(int&nbsp;nibble)</code>
<div class="block">
 Converts the 4 lsb of an int to a hexadecimal digit encoded using the Msb0 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#intToShortArray(int, int, short[], int, int)">intToShortArray</a></strong>(int&nbsp;src,
               int&nbsp;srcPos,
               short[]&nbsp;dst,
               int&nbsp;dstPos,
               int&nbsp;nShorts)</code>
<div class="block">
 Converts a int into an array of short using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#longToBinary(long, int, boolean[], int, int)">longToBinary</a></strong>(long&nbsp;src,
            int&nbsp;srcPos,
            boolean[]&nbsp;dst,
            int&nbsp;dstPos,
            int&nbsp;nBools)</code>
<div class="block">
 Converts a long into an array of boolean using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#longToByteArray(long, int, byte[], int, int)">longToByteArray</a></strong>(long&nbsp;src,
               int&nbsp;srcPos,
               byte[]&nbsp;dst,
               int&nbsp;dstPos,
               int&nbsp;nBytes)</code>
<div class="block">
 Converts a long into an array of byte using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#longToHex(long, int, java.lang.String, int, int)">longToHex</a></strong>(long&nbsp;src,
         int&nbsp;srcPos,
         <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
         int&nbsp;dstPos,
         int&nbsp;nHexs)</code>
<div class="block">
 Converts a long into an array of Char using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#longToIntArray(long, int, int[], int, int)">longToIntArray</a></strong>(long&nbsp;src,
              int&nbsp;srcPos,
              int[]&nbsp;dst,
              int&nbsp;dstPos,
              int&nbsp;nInts)</code>
<div class="block">
 Converts a long into an array of int using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#longToShortArray(long, int, short[], int, int)">longToShortArray</a></strong>(long&nbsp;src,
                int&nbsp;srcPos,
                short[]&nbsp;dst,
                int&nbsp;dstPos,
                int&nbsp;nShorts)</code>
<div class="block">
 Converts a long into an array of short using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#shortArrayToInt(short[], int, int, int, int)">shortArrayToInt</a></strong>(short[]&nbsp;src,
               int&nbsp;srcPos,
               int&nbsp;dstInit,
               int&nbsp;dstPos,
               int&nbsp;nShorts)</code>
<div class="block">
 Converts an array of short into a int using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#shortArrayToLong(short[], int, long, int, int)">shortArrayToLong</a></strong>(short[]&nbsp;src,
                int&nbsp;srcPos,
                long&nbsp;dstInit,
                int&nbsp;dstPos,
                int&nbsp;nShorts)</code>
<div class="block">
 Converts an array of short into a long using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#shortToBinary(short, int, boolean[], int, int)">shortToBinary</a></strong>(short&nbsp;src,
             int&nbsp;srcPos,
             boolean[]&nbsp;dst,
             int&nbsp;dstPos,
             int&nbsp;nBools)</code>
<div class="block">
 Converts a short into an array of boolean using the default (little endian, Lsb0) byte
 and bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#shortToByteArray(short, int, byte[], int, int)">shortToByteArray</a></strong>(short&nbsp;src,
                int&nbsp;srcPos,
                byte[]&nbsp;dst,
                int&nbsp;dstPos,
                int&nbsp;nBytes)</code>
<div class="block">
 Converts a short into an array of byte using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#shortToHex(short, int, java.lang.String, int, int)">shortToHex</a></strong>(short&nbsp;src,
          int&nbsp;srcPos,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
          int&nbsp;dstPos,
          int&nbsp;nHexs)</code>
<div class="block">
 Converts a short into an array of Char using the default (little endian, Lsb0) byte and
 bit ordering.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Conversion.html#uuidToByteArray(java.util.UUID, byte[], int, int)">uuidToByteArray</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;src,
               byte[]&nbsp;dst,
               int&nbsp;dstPos,
               int&nbsp;nBytes)</code>
<div class="block">
 Converts UUID into an array of byte using the default (little endian, Lsb0) byte and bit
 ordering.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Conversion()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Conversion</h4>
<pre>public&nbsp;Conversion()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="hexDigitToInt(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexDigitToInt</h4>
<pre>public static&nbsp;int&nbsp;hexDigitToInt(char&nbsp;hexDigit)</pre>
<div class="block"><p>
 Converts a hexadecimal digit into an int using the default (Lsb0) bit ordering.
 </p>
 <p>
 '1' is converted to 1
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hexDigit</code> - the hexadecimal digit to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>an int equals to <code>hexDigit</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>hexDigit</code> is not a hexadecimal digit</dd></dl>
</li>
</ul>
<a name="hexDigitMsb0ToInt(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexDigitMsb0ToInt</h4>
<pre>public static&nbsp;int&nbsp;hexDigitMsb0ToInt(char&nbsp;hexDigit)</pre>
<div class="block"><p>
 Converts a hexadecimal digit into an int using the Msb0 bit ordering.
 </p>
 <p>
 '1' is converted to 8
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hexDigit</code> - the hexadecimal digit to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>an int equals to <code>hexDigit</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>hexDigit</code> is not a hexadecimal digit</dd></dl>
</li>
</ul>
<a name="hexDigitToBinary(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexDigitToBinary</h4>
<pre>public static&nbsp;boolean[]&nbsp;hexDigitToBinary(char&nbsp;hexDigit)</pre>
<div class="block"><p>
 Converts a hexadecimal digit into binary (represented as boolean array) using the default
 (Lsb0) bit ordering.
 </p>
 <p>
 '1' is converted as follow: (1, 0, 0, 0)
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hexDigit</code> - the hexadecimal digit to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a boolean array with the binary representation of <code>hexDigit</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>hexDigit</code> is not a hexadecimal digit</dd></dl>
</li>
</ul>
<a name="hexDigitMsb0ToBinary(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexDigitMsb0ToBinary</h4>
<pre>public static&nbsp;boolean[]&nbsp;hexDigitMsb0ToBinary(char&nbsp;hexDigit)</pre>
<div class="block"><p>
 Converts a hexadecimal digit into binary (represented as boolean array) using the Msb0
 bit ordering.
 </p>
 <p>
 '1' is converted as follow: (0, 0, 0, 1)
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hexDigit</code> - the hexadecimal digit to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a boolean array with the binary representation of <code>hexDigit</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>hexDigit</code> is not a hexadecimal digit</dd></dl>
</li>
</ul>
<a name="binaryToHexDigit(boolean[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToHexDigit</h4>
<pre>public static&nbsp;char&nbsp;binaryToHexDigit(boolean[]&nbsp;src)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) to a hexadecimal digit using the default
 (Lsb0) bit ordering.
 </p>
 <p>
 (1, 0, 0, 0) is converted as follow: '1'
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>src</code> is empty</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="binaryToHexDigit(boolean[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToHexDigit</h4>
<pre>public static&nbsp;char&nbsp;binaryToHexDigit(boolean[]&nbsp;src,
                    int&nbsp;srcPos)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) to a hexadecimal digit using the default
 (Lsb0) bit ordering.
 </p>
 <p>
 (1, 0, 0, 0) is converted as follow: '1'
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position of the lsb to start the conversion</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>src</code> is empty</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="binaryToHexDigitMsb0_4bits(boolean[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToHexDigitMsb0_4bits</h4>
<pre>public static&nbsp;char&nbsp;binaryToHexDigitMsb0_4bits(boolean[]&nbsp;src)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) to a hexadecimal digit using the Msb0 bit
 ordering.
 </p>
 <p>
 (1, 0, 0, 0) is converted as follow: '8'
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>src</code> is empty, <code>src.length &lt; 4</code> or
             <code>src.length &gt; 8</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="binaryToHexDigitMsb0_4bits(boolean[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToHexDigitMsb0_4bits</h4>
<pre>public static&nbsp;char&nbsp;binaryToHexDigitMsb0_4bits(boolean[]&nbsp;src,
                              int&nbsp;srcPos)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) to a hexadecimal digit using the Msb0 bit
 ordering.
 </p>
 <p>
 (1, 0, 0, 0) is converted as follow: '8' (1,0,0,1,1,0,1,0) with srcPos = 3 is converted
 to 'D'
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position of the lsb to start the conversion</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>src</code> is empty, <code>src.length &gt; 8</code> or
             <code>src.length - srcPos &lt; 4</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="binaryBeMsb0ToHexDigit(boolean[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryBeMsb0ToHexDigit</h4>
<pre>public static&nbsp;char&nbsp;binaryBeMsb0ToHexDigit(boolean[]&nbsp;src)</pre>
<div class="block"><p>
 Converts the first 4 bits of a binary (represented as boolean array) in big endian Msb0
 bit ordering to a hexadecimal digit.
 </p>
 <p>
 (1, 0, 0, 0) is converted as follow: '8' (1,0,0,0,0,0,0,0, 0,0,0,0,0,1,0,0) is converted
 to '4'
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>src</code> is empty</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="binaryBeMsb0ToHexDigit(boolean[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryBeMsb0ToHexDigit</h4>
<pre>public static&nbsp;char&nbsp;binaryBeMsb0ToHexDigit(boolean[]&nbsp;src,
                          int&nbsp;srcPos)</pre>
<div class="block"><p>
 Converts a binary (represented as boolean array) in big endian Msb0 bit ordering to a
 hexadecimal digit.
 </p>
 <p>
 (1, 0, 0, 0) with srcPos = 0 is converted as follow: '8' (1,0,0,0,0,0,0,0,
 0,0,0,1,0,1,0,0) with srcPos = 2 is converted to '5'
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position of the lsb to start the conversion</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>src</code> is empty</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="intToHexDigit(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intToHexDigit</h4>
<pre>public static&nbsp;char&nbsp;intToHexDigit(int&nbsp;nibble)</pre>
<div class="block"><p>
 Converts the 4 lsb of an int to a hexadecimal digit.
 </p>
 <p>
 0 returns '0'
 </p>
 <p>
 1 returns '1'
 </p>
 <p>
 10 returns 'A' and so on...
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>nibble</code> - the 4 bits to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the 4 lsb of <code>nibble</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nibble &lt; 0</code> or <code>nibble &gt; 15</code></dd></dl>
</li>
</ul>
<a name="intToHexDigitMsb0(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intToHexDigitMsb0</h4>
<pre>public static&nbsp;char&nbsp;intToHexDigitMsb0(int&nbsp;nibble)</pre>
<div class="block"><p>
 Converts the 4 lsb of an int to a hexadecimal digit encoded using the Msb0 bit ordering.
 </p>
 <p>
 0 returns '0'
 </p>
 <p>
 1 returns '8'
 </p>
 <p>
 10 returns '5' and so on...
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>nibble</code> - the 4 bits to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a hexadecimal digit representing the 4 lsb of <code>nibble</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nibble &lt; 0</code> or <code>nibble &gt; 15</code></dd></dl>
</li>
</ul>
<a name="intArrayToLong(int[], int, long, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intArrayToLong</h4>
<pre>public static&nbsp;long&nbsp;intArrayToLong(int[]&nbsp;src,
                  int&nbsp;srcPos,
                  long&nbsp;dstInit,
                  int&nbsp;dstPos,
                  int&nbsp;nInts)</pre>
<div class="block"><p>
 Converts an array of int into a long using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the int array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in int unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination long</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result long</dd><dd><code>nInts</code> - the number of ints to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a long containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nInts-1)*32+dstPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nInts &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="shortArrayToLong(short[], int, long, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shortArrayToLong</h4>
<pre>public static&nbsp;long&nbsp;shortArrayToLong(short[]&nbsp;src,
                    int&nbsp;srcPos,
                    long&nbsp;dstInit,
                    int&nbsp;dstPos,
                    int&nbsp;nShorts)</pre>
<div class="block"><p>
 Converts an array of short into a long using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the short array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in short unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination long</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result long</dd><dd><code>nShorts</code> - the number of shorts to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a long containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nShorts-1)*16+dstPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nShorts &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="shortArrayToInt(short[], int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shortArrayToInt</h4>
<pre>public static&nbsp;int&nbsp;shortArrayToInt(short[]&nbsp;src,
                  int&nbsp;srcPos,
                  int&nbsp;dstInit,
                  int&nbsp;dstPos,
                  int&nbsp;nShorts)</pre>
<div class="block"><p>
 Converts an array of short into a int using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the short array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in short unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination int</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result int</dd><dd><code>nShorts</code> - the number of shorts to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a int containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nShorts-1)*16+dstPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nShorts &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="byteArrayToLong(byte[], int, long, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byteArrayToLong</h4>
<pre>public static&nbsp;long&nbsp;byteArrayToLong(byte[]&nbsp;src,
                   int&nbsp;srcPos,
                   long&nbsp;dstInit,
                   int&nbsp;dstPos,
                   int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts an array of byte into a long using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the byte array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in byte unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination long</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result long</dd><dd><code>nBytes</code> - the number of bytes to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a long containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nBytes-1)*8+dstPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBytes &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="byteArrayToInt(byte[], int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byteArrayToInt</h4>
<pre>public static&nbsp;int&nbsp;byteArrayToInt(byte[]&nbsp;src,
                 int&nbsp;srcPos,
                 int&nbsp;dstInit,
                 int&nbsp;dstPos,
                 int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts an array of byte into a int using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the byte array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in byte unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination int</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result int</dd><dd><code>nBytes</code> - the number of bytes to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a int containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nBytes-1)*8+dstPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBytes &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="byteArrayToShort(byte[], int, short, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byteArrayToShort</h4>
<pre>public static&nbsp;short&nbsp;byteArrayToShort(byte[]&nbsp;src,
                     int&nbsp;srcPos,
                     short&nbsp;dstInit,
                     int&nbsp;dstPos,
                     int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts an array of byte into a short using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the byte array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in byte unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination short</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result short</dd><dd><code>nBytes</code> - the number of bytes to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a short containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nBytes-1)*8+dstPos &gt;= 16</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBytes &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="hexToLong(java.lang.String, int, long, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexToLong</h4>
<pre>public static&nbsp;long&nbsp;hexToLong(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
             int&nbsp;srcPos,
             long&nbsp;dstInit,
             int&nbsp;dstPos,
             int&nbsp;nHex)</pre>
<div class="block"><p>
 Converts an array of Char into a long using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the hex string to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in Char unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination long</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result long</dd><dd><code>nHex</code> - the number of Chars to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a long containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+dstPos &gt;= 64</code></dd></dl>
</li>
</ul>
<a name="hexToInt(java.lang.String, int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexToInt</h4>
<pre>public static&nbsp;int&nbsp;hexToInt(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
           int&nbsp;srcPos,
           int&nbsp;dstInit,
           int&nbsp;dstPos,
           int&nbsp;nHex)</pre>
<div class="block"><p>
 Converts an array of Char into a int using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the hex string to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in Char unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination int</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result int</dd><dd><code>nHex</code> - the number of Chars to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a int containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+dstPos &gt;= 32</code></dd></dl>
</li>
</ul>
<a name="hexToShort(java.lang.String, int, short, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexToShort</h4>
<pre>public static&nbsp;short&nbsp;hexToShort(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
               int&nbsp;srcPos,
               short&nbsp;dstInit,
               int&nbsp;dstPos,
               int&nbsp;nHex)</pre>
<div class="block"><p>
 Converts an array of Char into a short using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the hex string to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in Char unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination short</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result short</dd><dd><code>nHex</code> - the number of Chars to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a short containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+dstPos &gt;= 16</code></dd></dl>
</li>
</ul>
<a name="hexToByte(java.lang.String, int, byte, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexToByte</h4>
<pre>public static&nbsp;byte&nbsp;hexToByte(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;src,
             int&nbsp;srcPos,
             byte&nbsp;dstInit,
             int&nbsp;dstPos,
             int&nbsp;nHex)</pre>
<div class="block"><p>
 Converts an array of Char into a byte using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the hex string to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in Char unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination byte</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result byte</dd><dd><code>nHex</code> - the number of Chars to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a byte containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+dstPos &gt;= 8</code></dd></dl>
</li>
</ul>
<a name="binaryToLong(boolean[], int, long, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToLong</h4>
<pre>public static&nbsp;long&nbsp;binaryToLong(boolean[]&nbsp;src,
                int&nbsp;srcPos,
                long&nbsp;dstInit,
                int&nbsp;dstPos,
                int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) into a long using the default (little
 endian, Lsb0) byte and bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in boolean unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination long</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result long</dd><dd><code>nBools</code> - the number of booleans to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a long containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+dstPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBools &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="binaryToInt(boolean[], int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToInt</h4>
<pre>public static&nbsp;int&nbsp;binaryToInt(boolean[]&nbsp;src,
              int&nbsp;srcPos,
              int&nbsp;dstInit,
              int&nbsp;dstPos,
              int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) into a int using the default (little
 endian, Lsb0) byte and bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in boolean unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination int</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result int</dd><dd><code>nBools</code> - the number of booleans to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a int containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+dstPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBools &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="binaryToShort(boolean[], int, short, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToShort</h4>
<pre>public static&nbsp;short&nbsp;binaryToShort(boolean[]&nbsp;src,
                  int&nbsp;srcPos,
                  short&nbsp;dstInit,
                  int&nbsp;dstPos,
                  int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) into a short using the default (little
 endian, Lsb0) byte and bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in boolean unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination short</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result short</dd><dd><code>nBools</code> - the number of booleans to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a short containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+dstPos &gt;= 16</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBools &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="binaryToByte(boolean[], int, byte, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binaryToByte</h4>
<pre>public static&nbsp;byte&nbsp;binaryToByte(boolean[]&nbsp;src,
                int&nbsp;srcPos,
                byte&nbsp;dstInit,
                int&nbsp;dstPos,
                int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts binary (represented as boolean array) into a byte using the default (little
 endian, Lsb0) byte and bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the binary to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in boolean unit, from where to start the
            conversion</dd><dd><code>dstInit</code> - initial value of the destination byte</dd><dd><code>dstPos</code> - the position of the lsb, in bits, in the result byte</dd><dd><code>nBools</code> - the number of booleans to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>a byte containing the selected bits</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+dstPos &gt;= 8</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>srcPos + nBools &gt; src.length</code></dd></dl>
</li>
</ul>
<a name="longToIntArray(long, int, int[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longToIntArray</h4>
<pre>public static&nbsp;int[]&nbsp;longToIntArray(long&nbsp;src,
                   int&nbsp;srcPos,
                   int[]&nbsp;dst,
                   int&nbsp;dstPos,
                   int&nbsp;nInts)</pre>
<div class="block"><p>
 Converts a long into an array of int using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the long to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nInts</code> - the number of ints to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code> and <code>nInts &gt; 0</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nInts-1)*32+srcPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nInts &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="longToShortArray(long, int, short[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longToShortArray</h4>
<pre>public static&nbsp;short[]&nbsp;longToShortArray(long&nbsp;src,
                       int&nbsp;srcPos,
                       short[]&nbsp;dst,
                       int&nbsp;dstPos,
                       int&nbsp;nShorts)</pre>
<div class="block"><p>
 Converts a long into an array of short using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the long to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nShorts</code> - the number of shorts to copy to <code>dst</code>, must be smaller or equal to
            the width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nShorts-1)*16+srcPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nShorts &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="intToShortArray(int, int, short[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intToShortArray</h4>
<pre>public static&nbsp;short[]&nbsp;intToShortArray(int&nbsp;src,
                      int&nbsp;srcPos,
                      short[]&nbsp;dst,
                      int&nbsp;dstPos,
                      int&nbsp;nShorts)</pre>
<div class="block"><p>
 Converts a int into an array of short using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the int to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nShorts</code> - the number of shorts to copy to <code>dst</code>, must be smaller or equal to
            the width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nShorts-1)*16+srcPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nShorts &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="longToByteArray(long, int, byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longToByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;longToByteArray(long&nbsp;src,
                     int&nbsp;srcPos,
                     byte[]&nbsp;dst,
                     int&nbsp;dstPos,
                     int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts a long into an array of byte using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the long to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBytes</code> - the number of bytes to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nBytes-1)*8+srcPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBytes &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="intToByteArray(int, int, byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intToByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;intToByteArray(int&nbsp;src,
                    int&nbsp;srcPos,
                    byte[]&nbsp;dst,
                    int&nbsp;dstPos,
                    int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts a int into an array of byte using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the int to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBytes</code> - the number of bytes to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nBytes-1)*8+srcPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBytes &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="shortToByteArray(short, int, byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shortToByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;shortToByteArray(short&nbsp;src,
                      int&nbsp;srcPos,
                      byte[]&nbsp;dst,
                      int&nbsp;dstPos,
                      int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts a short into an array of byte using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the short to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBytes</code> - the number of bytes to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nBytes-1)*8+srcPos &gt;= 16</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBytes &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="longToHex(long, int, java.lang.String, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longToHex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;longToHex(long&nbsp;src,
               int&nbsp;srcPos,
               <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
               int&nbsp;dstPos,
               int&nbsp;nHexs)</pre>
<div class="block"><p>
 Converts a long into an array of Char using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the long to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dstInit</code> - the initial value for the result String</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nHexs</code> - the number of Chars to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+srcPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">StringIndexOutOfBoundsException</a></code> - if <code>dst.init.length() &lt; dstPos</code></dd></dl>
</li>
</ul>
<a name="intToHex(int, int, java.lang.String, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intToHex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;intToHex(int&nbsp;src,
              int&nbsp;srcPos,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
              int&nbsp;dstPos,
              int&nbsp;nHexs)</pre>
<div class="block"><p>
 Converts a int into an array of Char using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the int to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dstInit</code> - the initial value for the result String</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nHexs</code> - the number of Chars to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+srcPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">StringIndexOutOfBoundsException</a></code> - if <code>dst.init.length() &lt; dstPos</code></dd></dl>
</li>
</ul>
<a name="shortToHex(short, int, java.lang.String, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shortToHex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;shortToHex(short&nbsp;src,
                int&nbsp;srcPos,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
                int&nbsp;dstPos,
                int&nbsp;nHexs)</pre>
<div class="block"><p>
 Converts a short into an array of Char using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the short to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dstInit</code> - the initial value for the result String</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nHexs</code> - the number of Chars to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+srcPos &gt;= 16</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">StringIndexOutOfBoundsException</a></code> - if <code>dst.init.length() &lt; dstPos</code></dd></dl>
</li>
</ul>
<a name="byteToHex(byte, int, java.lang.String, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byteToHex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;byteToHex(byte&nbsp;src,
               int&nbsp;srcPos,
               <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstInit,
               int&nbsp;dstPos,
               int&nbsp;nHexs)</pre>
<div class="block"><p>
 Converts a byte into an array of Char using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the byte to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dstInit</code> - the initial value for the result String</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nHexs</code> - the number of Chars to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>(nHexs-1)*4+srcPos &gt;= 8</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">StringIndexOutOfBoundsException</a></code> - if <code>dst.init.length() &lt; dstPos</code></dd></dl>
</li>
</ul>
<a name="longToBinary(long, int, boolean[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longToBinary</h4>
<pre>public static&nbsp;boolean[]&nbsp;longToBinary(long&nbsp;src,
                     int&nbsp;srcPos,
                     boolean[]&nbsp;dst,
                     int&nbsp;dstPos,
                     int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts a long into an array of boolean using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the long to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBools</code> - the number of booleans to copy to <code>dst</code>, must be smaller or equal to
            the width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+srcPos &gt;= 64</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBools &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="intToBinary(int, int, boolean[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intToBinary</h4>
<pre>public static&nbsp;boolean[]&nbsp;intToBinary(int&nbsp;src,
                    int&nbsp;srcPos,
                    boolean[]&nbsp;dst,
                    int&nbsp;dstPos,
                    int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts a int into an array of boolean using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the int to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBools</code> - the number of booleans to copy to <code>dst</code>, must be smaller or equal to
            the width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+srcPos &gt;= 32</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBools &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="shortToBinary(short, int, boolean[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shortToBinary</h4>
<pre>public static&nbsp;boolean[]&nbsp;shortToBinary(short&nbsp;src,
                      int&nbsp;srcPos,
                      boolean[]&nbsp;dst,
                      int&nbsp;dstPos,
                      int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts a short into an array of boolean using the default (little endian, Lsb0) byte
 and bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the short to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBools</code> - the number of booleans to copy to <code>dst</code>, must be smaller or equal to
            the width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+srcPos &gt;= 16</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBools &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="byteToBinary(byte, int, boolean[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byteToBinary</h4>
<pre>public static&nbsp;boolean[]&nbsp;byteToBinary(byte&nbsp;src,
                     int&nbsp;srcPos,
                     boolean[]&nbsp;dst,
                     int&nbsp;dstPos,
                     int&nbsp;nBools)</pre>
<div class="block"><p>
 Converts a byte into an array of boolean using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the byte to convert</dd><dd><code>srcPos</code> - the position in <code>src</code>, in bits, from where to start the conversion</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBools</code> - the number of booleans to copy to <code>dst</code>, must be smaller or equal to
            the width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBools-1+srcPos &gt;= 8</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBools &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="uuidToByteArray(java.util.UUID, byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uuidToByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;uuidToByteArray(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;src,
                     byte[]&nbsp;dst,
                     int&nbsp;dstPos,
                     int&nbsp;nBytes)</pre>
<div class="block"><p>
 Converts UUID into an array of byte using the default (little endian, Lsb0) byte and bit
 ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the UUID to convert</dd><dd><code>dst</code> - the destination array</dd><dd><code>dstPos</code> - the position in <code>dst</code> where to copy the result</dd><dd><code>nBytes</code> - the number of bytes to copy to <code>dst</code>, must be smaller or equal to the
            width of the input (from srcPos to msb)</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>dst</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>dst</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>nBytes &gt; 16</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <code>dstPos + nBytes &gt; dst.length</code></dd></dl>
</li>
</ul>
<a name="byteArrayToUuid(byte[], int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>byteArrayToUuid</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;byteArrayToUuid(byte[]&nbsp;src,
                   int&nbsp;srcPos)</pre>
<div class="block"><p>
 Converts bytes from an array into a UUID using the default (little endian, Lsb0) byte and
 bit ordering.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - the byte array to convert</dd><dd><code>srcPos</code> - the position in <code>src</code> where to copy the result from</dd>
<dt><span class="strong">Returns:</span></dt><dd>a UUID</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>src</code> is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if array does not contain at least 16 bytes beginning
             with <code>srcPos</code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Conversion.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/commons/lang3/ClassUtils.Interfaces.html" title="enum in org.apache.commons.lang3"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/commons/lang3/EnumUtils.html" title="class in org.apache.commons.lang3"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/commons/lang3/Conversion.html" target="_top">Frames</a></li>
<li><a href="Conversion.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
